package com.wolan.exception;

import java.util.ArrayList;
import java.util.List;

public class BusinessException extends RuntimeException {
    /**
     * 异常代码
     */
    private String errorCode;
    /**
     * 异常消息
     */
    private String message;

    public BusinessException() {
    }

    public BusinessException(String errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException(String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
